<form enctype="multipart/form-data" method="post">
<h1 class="page-header">Cập nhật thông tin danh mục <small></small></h1>
            <!-- end page-header -->
            
            <!-- begin row -->
            <div class="row">
                <!-- begin col-6 -->
                <div class="col-md-12" >
                    <!-- begin panel -->
                    <div class=" panel panel-inverse" >
                        <div class="panel-heading">
                            <div class="panel-heading-btn">
                                <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                                <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-repeat"></i></a>
                                <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
                                <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-danger" data-click="panel-remove"><i class="fa fa-times"></i></a>
                            </div>
                        <h4 class="panel-title">Thông tin danh mục</h4>
                        </div>
                        <div class="panel-body panel-form">
                            <div  class="form-horizontal form-bordered" data-validate="parsley">
                                <input type="hidden" name="categories_id" value="<?php echo $this->escapeHtml($data->categories_id);?>">
                                <div class="form-group">
                                    <label class="control-label col-md-3 col-sm-3" for="product_name">Tên danh mục * :</label>
                                    <div class="col-md-7 col-sm-7">
                                        <input class="form-control parsley-validated" type="text" id="fullname" name="name" data-required="true" placeholder="Ten danh muc" value="<?php echo $this->escapeHtml($data->name);?>" required="" validationmessage="Please enter data">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-md-5 col-sm-5">
                                    </div>
                                    <div class="col-md-7 col-sm-7">
                                       
                                       <input type="submit" class="btn btn-primary" name="submit" value="Cập nhật">  
                                    </div>
                                </div>
                                
                                
                                
                            </div>
                        </div>
                    </div>
                    <!-- end panel -->
                    <!--Chi tiet -->
            
               
                </div>
                <!-- end col-6 -->
            </div>
            <!-- end row -->
</form>

<?php 
$message =$this->layout()->message;

if(isset($message)){?>
<script type="text/javascript">
    $(document).ready(function(){
        alert('<?php echo $message;?>');
    });
</script>
<?php }?>